/**
 * 分享窗口
 */
var YQHWindow = Window.extend({
    _ccsFileName: res.YQHWindow_json,
    _initClickListeners: function () {
        this._super();
        this._clickListeners['yqh_copy1'] = '_click_copy1';
        this._clickListeners['yqh_copy2'] = '_click_copy2';
        if(gameData.opt_conf_2.zhaomu_gongzhong){
            this._nodeList['copyStr1'].setString(gameData.opt_conf_2.zhaomu_gongzhong);
        }
        if(gameData.opt_conf_2.zhaomu_weixin){
            this._nodeList['copyStr2'].setString(gameData.opt_conf_2.zhaomu_weixin);
        }
    },
    _click_copy1: function () {
        var self = this;
        var shareText =self._nodeList['copyStr1'].getString();
        DeviceUtil.savePasteBoard(shareText);
        showToast("信息已复制，请粘贴至需要处"+shareText);

    },
    _click_copy2: function () {
        var self = this;
        var shareText =self._nodeList['copyStr2'].getString();
        DeviceUtil.savePasteBoard(shareText);
        showToast("信息已复制，请粘贴至需要处"+shareText);
    },
});